package com.warmheart.entity.sys;

import java.math.BigInteger;

import com.warmheart.base.entity.BaseEntity;
import com.warmheart.builder.sys.SysSequenceCoBuilder;
import com.warmheart.builder.sys.SysSequenceRsBuilder;

/**
 * 
 * @ClassName: SysSequence
 * @Description: 序号实体类，对应表名称为tb_sys_sequence
 *               温馨提示：不要修改该实体类的任何字段
 * @author ZhangJianyang
 * @date 2025-06-16 09:37:02
 *
 */
public class SysSequence extends BaseEntity<SysSequenceCoBuilder, SysSequenceRsBuilder> {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * @Title: tableName
     * @Description: 表名称
     * @author ZhangJianyang
     * @return
     */
    @Override
    public String tableName() {
        return "tb_sys_sequence";
    }

    public SysSequenceCoBuilder coBuilder() {
        return new SysSequenceCoBuilder(this);
    }
    
    public SysSequenceRsBuilder rsBuilder() {
        return new SysSequenceRsBuilder(this);
    }
    
    /**
     * 序号类型
     */
    private String seqType;

    /**
     * 前缀
     */
    private String prefix;

    /**
     * 流水号长度
     */
    private Integer serialLength;

    /**
     * 日期规则
     */
    private String dateRule;

    /**
     * 流水号
     */
    private BigInteger serialNumber;

    /**
     * 是否按日期更新
     */
    private Boolean isDateUpdate;

    /**
     * 
     * @Title: setSeqType
     * @Description: 序号类型setter方法
     * @author warmheart
     * @param seqType
     */
    public void setSeqType(String seqType) {
        this.seqType  =  seqType;
    }

    /**
     * 
     * @Title: getSeqType
     * @Description: 序号类型getter方法
     * @author warmheart
     * @return
     */
    public String getSeqType() {
        return seqType;
    }

    /**
     * 
     * @Title: setPrefix
     * @Description: 前缀setter方法
     * @author warmheart
     * @param prefix
     */
    public void setPrefix(String prefix) {
        this.prefix  =  prefix;
    }

    /**
     * 
     * @Title: getPrefix
     * @Description: 前缀getter方法
     * @author warmheart
     * @return
     */
    public String getPrefix() {
        return prefix;
    }

    /**
     * 
     * @Title: setSerialLength
     * @Description: 流水号长度setter方法
     * @author warmheart
     * @param serialLength
     */
    public void setSerialLength(Integer serialLength) {
        this.serialLength  =  serialLength;
    }

    /**
     * 
     * @Title: getSerialLength
     * @Description: 流水号长度getter方法
     * @author warmheart
     * @return
     */
    public Integer getSerialLength() {
        return serialLength;
    }

    /**
     * 
     * @Title: setDateRule
     * @Description: 日期规则setter方法
     * @author warmheart
     * @param dateRule
     */
    public void setDateRule(String dateRule) {
        this.dateRule  =  dateRule;
    }

    /**
     * 
     * @Title: getDateRule
     * @Description: 日期规则getter方法
     * @author warmheart
     * @return
     */
    public String getDateRule() {
        return dateRule;
    }

    /**
     * 
     * @Title: setSerialNumber
     * @Description: 流水号setter方法
     * @author warmheart
     * @param serialNumber
     */
    public void setSerialNumber(BigInteger serialNumber) {
        this.serialNumber  =  serialNumber;
    }

    /**
     * 
     * @Title: getSerialNumber
     * @Description: 流水号getter方法
     * @author warmheart
     * @return
     */
    public BigInteger getSerialNumber() {
        return serialNumber;
    }

    /**
     * 
     * @Title: setIsDateUpdate
     * @Description: 是否按日期更新setter方法
     * @author warmheart
     * @param isDateUpdate
     */
    public void setIsDateUpdate(Boolean isDateUpdate) {
        this.isDateUpdate  =  isDateUpdate;
    }

    /**
     * 
     * @Title: getIsDateUpdate
     * @Description: 是否按日期更新getter方法
     * @author warmheart
     * @return
     */
    public Boolean getIsDateUpdate() {
        return isDateUpdate;
    }
}
